ArcFM Responder Mobile Developer Guide
IsInSet<T>(T,IEnumerable<T>) Method






A value to compare against a set of values
A set expected values
Indicates whether a value is equivalent to at least one of a set of expected values.
Syntax
'Declaration
 
Public Overloads Shared Function IsInSet(Of T)( _
   ByVal value As T, _
   ByVal expectedValues As System.Collections.Generic.IEnumerable(Of T) _
) As System.Boolean
'Usage
 
Dim value As T
Dim expectedValues As System.Collections.Generic.IEnumerable(Of T)
Dim value As System.Boolean
 
value = DbCompare.IsInSet(Of T)(value, expectedValues)
public static System.bool IsInSet<T>( 
   T value,
   System.Collections.Generic.IEnumerable<T> expectedValues
)
public function IsInSet( 
    value: T;
    expectedValues: System.Collections.Generic.IEnumerable
): System.Boolean; static; 
public static function IsInSet( 
   value : T,
   expectedValues : System.Collections.Generic.IEnumerable
) : System.boolean;
public: static System.bool IsInSet<T>( 
   T* value,
   System.Collections.Generic.IEnumerable<T*>* expectedValues
) 
public:
static System.bool IsInSetgeneric<typename T>
( 
   T^ value,
   System.Collections.Generic.IEnumerable<T^>^ expectedValues
) 

Parameters

value
A value to compare against a set of values
expectedValues
A set expected values

Type Parameters

T

Return Value

True if the value exists in the set of expected values, otherwise false.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DbCompare Class
DbCompare Members
Overload List

Send Feedback